|
Foxit PDF SDK
|
Inherits FoxitPDFSDKPython3._object.
Public Member Functions | |
| def | WatermarkSettings () |
| Constructor. | |
| def | WatermarkSettings (settings) |
| Constructor, with another watermark settings object. More... | |
| def | Set (position, offset_x, offset_y, flags, scale_x, scale_y, rotation, opacity, is_offset_centered, relative_scale_to_page) |
| Set value. More... | |
Static Public Attributes | |
| e_FlagASAnnot = _fsdk.WatermarkSettings_e_FlagASAnnot | |
| If set, the watermark will be an annotation when inserted to a PDF page. | |
| e_FlagASPageContents = _fsdk.WatermarkSettings_e_FlagASPageContents | |
| If set, the watermark will be a part of page content when inserted to a PDF page. | |
| e_FlagInvisible = _fsdk.WatermarkSettings_e_FlagInvisible | |
| If set, do not display a watermark. | |
| e_FlagNoPrint = _fsdk.WatermarkSettings_e_FlagNoPrint | |
| If set, do not print a watermark. | |
| e_FlagOnTop = _fsdk.WatermarkSettings_e_FlagOnTop | |
| If set, show watermark above other page content. | |
| e_FlagShareImageStream = _fsdk.WatermarkSettings_e_FlagShareImageStream | |
| If set, watermarks will share one image stream if these watermarks use the same image or bitmap. | |
| e_FlagSharePageStream = _fsdk.WatermarkSettings_e_FlagSharePageStream | |
| If set, watermarks will share one form xobject if these watermarks use the same page object. | |
| e_FlagShareTextStream = _fsdk.WatermarkSettings_e_FlagShareTextStream | |
| If set, watermarks will share one form xobject if these watermarks use the same text and text's related properties. | |
| flags = _fsdk.WatermarkSettings_flags | |
| Watermark flags. More... | |
| is_offset_centered = _fsdk.WatermarkSettings_is_offset_centered | |
| If true, position is invaild, and offset is the centered of the watermark. If false, offset is relative to the position. | |
| offset_x = _fsdk.WatermarkSettings_offset_x | |
| Horizontal offset, in points. | |
| offset_y = _fsdk.WatermarkSettings_offset_y | |
| Vertical offset, in points. | |
| opacity = _fsdk.WatermarkSettings_opacity | |
| Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. | |
| position = _fsdk.WatermarkSettings_position | |
| Watermark position. More... | |
| relative_scale_to_page = _fsdk.WatermarkSettings_relative_scale_to_page | |
| Relative scale to target page. Valid range: from 0 to 1 (exclusive of 0). If the value is 0 or greater than 1, this feature is disabled and scale_x/scale_y will be used instead. Default value: 0 (disabled). | |
| rotation = _fsdk.WatermarkSettings_rotation | |
| Rotation angle in degrees. | |
| scale_x = _fsdk.WatermarkSettings_scale_x | |
| Horizontal scale coefficient. It should be greater than 0.001f. | |
| scale_y = _fsdk.WatermarkSettings_scale_y | |
| Vertical scale coefficient. It should be greater than 0.001f. | |
This class represents the watermark settings used to construct a watermark object from any supported resource.
| def FoxitPDFSDKPython3.WatermarkSettings.WatermarkSettings | ( | settings | ) |
Constructor, with another watermark settings object.
| [in] | settings | Another watermark settings object. |
| def FoxitPDFSDKPython3.WatermarkSettings.Set | ( | position, | |
| offset_x, | |||
| offset_y, | |||
| flags, | |||
| scale_x, | |||
| scale_y, | |||
| rotation, | |||
| opacity, | |||
| is_offset_centered, | |||
| relative_scale_to_page | |||
| ) |
Set value.
| [in] | position | Watermark position. Please refer to values starting from FoxitPDFSDKPython3.e_PosTopLeft and this should be one of these values. |
| [in] | offset_x | Horizontal offset, in points. |
| [in] | offset_y | Vertical offset, in points. |
| [in] | flags | Watermark flags. Please refer to values starting from FoxitPDFSDKPython3.WatermarkSettings.e_FlagASPageContents and this can be one or a combination of these values. |
| [in] | scale_x | Horizontal scale coefficient. It should be greater than 0.001f. |
| [in] | scale_y | Vertical scale coefficient. It should be greater than 0.001f. |
| [in] | rotation | Rotation angle in degrees. |
| [in] | opacity | Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. |
| [in] | is_offset_centered | A boolean value which indicates whether offset is based on the watermark center. true means that the offset is based on the watermark center and the position will be ignored. false means not. |
| [in] | relative_scale_to_page | Relative scale to target page. Valid range: from 0 to 1 (exclusive of 0). If the value is 0 or greater than 1, this feature is disabled and scale_x/scale_y will be used instead. |
|
static |
Watermark flags.
Please refer to values starting from FoxitPDFSDKPython3.WatermarkSettings.e_FlagASPageContents and this can be one or a combination of these values.
|
static |
Watermark position.
Please refer to values starting from FoxitPDFSDKPython3.e_PosTopLeft and this should be one of these values.